package com.zstu.mall.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.zstu.mall.common.BaseServiceImpl;
import com.zstu.mall.service.UploadImageService;
import com.zstu.mall.entity.UploadImage;
import com.zstu.mall.dao.UploadImageDao;

/**
 * @author     : wuyc
 * @description: UploadImageServiceImpl
 * @date       : Created in 2019/11/24
 */
@Service
public class UploadImageServiceImpl extends BaseServiceImpl<UploadImage, String, UploadImageDao> implements UploadImageService {

	@Autowired
	private UploadImageDao uploadImageDao;

	/**
	 * 根据图片名查找图片
	 * @param name
	 * @return
	 */
	public UploadImage findByNewname(String name){
		return uploadImageDao.findByNewName(name);
	}

}
